/*
 * Copyright 2011 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.paymentexpress.server.config;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * Test card cases to check error flow
 * 
 * @author pying(peng ying)
 *
 */
public class TestCards {

    //bad cvv cards
    private final static List<String> badCVV = new ArrayList<String>(
        Arrays.asList("342337649030528", 
            "6011769851691760",
            "5155239927190195",
            "4113864427850982")
    );
    
    /**
     * private default constructor
     */
    private TestCards(){}
    
    /**
     * Checks if the card is a badCVV card
     * 
     * @param card
     * @return
     */
    public static Boolean checkCard(String card){
      if (badCVV.contains(card))
        return Boolean.TRUE;
      else
        return Boolean.FALSE;
    }
}
